package weights

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ WeightsModel = (*customWeightsModel)(nil)

type (
	// WeightsModel is an interface to be customized, add more methods here,
	// and implement the added methods in customWeightsModel.
	WeightsModel interface {
		weightsModel
	}

	customWeightsModel struct {
		*defaultWeightsModel
	}
)

// NewWeightsModel returns a model for the database table.
func NewWeightsModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) WeightsModel {
	return &customWeightsModel{
		defaultWeightsModel: newWeightsModel(conn, c, opts...),
	}
}
